<template>
	<div>
		{{text}}
		<span>{{time}}后跳回首页</span>
	</div>
</template>

<script>
	export default{
		data(){
			return{
				text:"页面未找到",
				time:5,
			}
		},
		created:function(){
			var timer1=setInterval(()=>{
				this.time--;
			},1000)
			var timer2=setTimeout(()=>{
				this.$router.push("/");
				clearInterval(timer1);
				clearTimeout(timer2);
			},5000)
		}
	}
</script>

<style>
</style>
